﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/">
   <xsl:apply-templates select="/cuerpo"/>
  </xsl:template>
   
  <xsl:template match="/cuerpo">
  <input type="hidden" id="config" value = "{config}" />
  <input type="hidden" id="seccion" value = "perfil" /> 
  <input type="hidden" id="propietario" value = "{propietario}" /> 
	  
      <div id="columns">
        <div id="columns">
        
        <ul id="column1" class="column">
		
		<xsl:for-each select="widget">
    		<li class="widget color">
			<xsl:attribute name = "id"><xsl:value-of select="@id"/></xsl:attribute>
                <div class="widget-head">
                    <h3><xsl:value-of select="titulo"/></h3>
                </div>
                <div class="widget-content">
                    <p><xsl:value-of select="contenido"/></p>
                </div>
            </li>
    	</xsl:for-each>
            
 
        </ul>

        <ul id="column2" class="columnCentral">
            <xsl:for-each select="contenido">
    		<li class="widget color">
			<xsl:attribute name = "id"><xsl:value-of select="@id"/></xsl:attribute>
                <div class="widget-head">
                    <h3><xsl:value-of select="titulo"/></h3>
                </div>
                <div class="widget-content">
                    <p><xsl:value-of select="contenido"/></p>
                </div>
            </li>
    	</xsl:for-each>

        </ul>
        
        <ul id="column3" class="column">
		
		   
            
        </ul>
        
    </div>
        </div>
        <br />
  </xsl:template>
  
</xsl:stylesheet>
